package com.bdqn.BookManage.po;
import java.util.*;

/**
 * @author : CP
 * @version: 1.0
 * @program : BookManage
 * @description : 订单信息与商品信息关联实体类
 * @date : 2020-07-31 12:01
 **/
public class OrderGoods {
	private Integer id;
	private String orderId;
	private Integer goodsId;
	private Integer goodsNums;
	private Double goodsPrice;
	private String goodsName;
	private String goodsThums;
	private Date createTime;

	public void setId(Integer id){
		this.id = id;
	}

	public Integer getId(){
	return id;
	}

	public void setOrderId(String orderId){
		this.orderId = orderId;
	}

	public String getOrderId(){
	return orderId;
	}

	public void setGoodsId(Integer goodsId){
		this.goodsId = goodsId;
	}

	public Integer getGoodsId(){
	return goodsId;
	}

	public void setGoodsNums(Integer goodsNums){
		this.goodsNums = goodsNums;
	}

	public Integer getGoodsNums(){
	return goodsNums;
	}

	public void setGoodsPrice(Double goodsPrice){
		this.goodsPrice = goodsPrice;
	}

	public Double getGoodsPrice(){
	return goodsPrice;
	}

	public void setGoodsName(String goodsName){
		this.goodsName = goodsName;
	}

	public String getGoodsName(){
	return goodsName;
	}

	public void setGoodsThums(String goodsThums){
		this.goodsThums = goodsThums;
	}

	public String getGoodsThums(){
	return goodsThums;
	}

	public void setCreateTime(Date createTime){
		this.createTime = createTime;
	}

	public Date getCreateTime(){
	return createTime;
	}

	public OrderGoods(){}
	public OrderGoods(Integer id, String orderId, Integer goodsId, Integer goodsNums, Double goodsPrice, String goodsName,
                      String goodsThums, Date createTime){
		this.id = id;
		this.orderId = orderId;
		this.goodsId = goodsId;
		this.goodsNums = goodsNums;
		this.goodsPrice = goodsPrice;
		this.goodsName = goodsName;
		this.goodsThums = goodsThums;
		this.createTime = createTime;
	}
	@Override
	public String toString() {
	return id+"\t"+orderId+"\t"+goodsId+"\t"+goodsNums+"\t"+goodsPrice+"\t"+goodsName+"\t"+goodsThums+"\t"+createTime;
}
	}
